package cn.stylefeng.guns.modular.recy.entity;
/*
 */

import com.baomidou.mybatisplus.extension.activerecord.*;
import java.io.*;
import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("region")
public class Region extends Model<Region> implements Serializable
{
    //alias
    public static final String TABLE_ALIAS = "区域";
    public static final String ALIAS_ID = "编号";
    public static final String ALIAS_NAME = "区域名称";
    public static final String ALIAS_PID = "上一级区域";
    public static final String ALIAS_SORT = "排序";
    public static final String ALIAS_LEVEL = "级别";
    public static final String ALIAS_LONGCODE = "区域长编码";
    public static final String ALIAS_CODE = "区域编码";
    public static final String SHOW_SPLIT = "- - - -";
    public static final int[] AREA_CODE_INDEXS = new int[]{2,4,6,9,12};

    //date formats
    public static final String DATE_FORMAT = "yyyy-MM-dd HH:mm:ss";



//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
//columns START
    @TableId(value = "id", type = IdType.ID_WORKER)
    private java.lang.Integer id;

    @TableField("name")
    private java.lang.String name;

    @TableField("pid")
    private java.lang.Integer pid;

    @TableField("sort")
    private java.lang.Integer sort;

    @TableField("level")
    private Integer level;

    @TableField("longcode")
    private java.lang.String longcode;

    @TableField("code")
    private java.lang.String code;

//columns END







    

}
